-
Notifications
You must be signed in to change notification settings - Fork 25k
fix: exclusion of selectively disabled libraries from codegen generation #51838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hardanish-Singh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
can you please open a pick request against 0.79 and 0.80 here. 2 separate issues, one per version, please! |
|
@cipolleschi merged this pull request in 7681036. |
|
This pull request was successfully merged by @aattola in 7681036 When will my fix make it into a release? | How to file a pick request? |
…ion (#51838) Summary: PR #51078 Implemented finding disabled libraries but the code (below) didn't actually filter any libraries out because destructured name is `undefined`. This pr adds the name to codegenEnabledLibraries so filtering would work. ```js const libraries = codegenEnabledLibraries.filter( ({name}) => !disabledLibraries.includes(name), ); ``` ## Changelog: [IOS] [FIXED] - Skip codegen for selectively disabled libraries in react-native.config.js Pull Request resolved: #51838 Test Plan: 1. Install a library that has the componentProvider field set in the codegen config (for example: react-native-safe-area-context and react-native-screens or see [reproducer](https://github.com/aattola/rn-codegen-exclude)) 2. Exclude library with react-native.config.js 3. install pods / run codegen 4. Check that codegen actually excluded the specified dependencies from: `ios/build/generated/ios/RCTThirdPartyComponentsProvider.mm` Rollback Plan: Reviewed By: cortinico Differential Revision: D76044622 Pulled By: cipolleschi fbshipit-source-id: 9e70c2a263c750edb1ea95305c9e5e178e2ce8d8
|
This pull request was successfully merged by @aattola in a1bad64 When will my fix make it into a release? | How to file a pick request? |
Summary:
PR #51078 Implemented finding disabled libraries but the code (below) didn't actually filter any libraries out because destructured name is
undefined. This pr adds the name to codegenEnabledLibraries so filtering would work.Changelog:
[IOS] [FIXED] - Skip codegen for selectively disabled libraries in react-native.config.js
Test Plan:
ios/build/generated/ios/RCTThirdPartyComponentsProvider.mm